package com.example.demo.service.impl;


import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.demo.entry.Recommentcar;
import com.example.demo.service.RecommentcarService;
import com.example.demo.mapper.RecommentcarMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author 16040
* @description 针对表【recommentcar】的数据库操作Service实现
* @createDate 2022-05-12 15:14:05
*/
@Service
public class RecommentcarServiceImpl extends ServiceImpl<RecommentcarMapper, Recommentcar>
implements RecommentcarService{
    @Autowired
    RecommentcarMapper recommentcarMapper;

    @Override
    public List<Recommentcar> getAll(String name) {
        return recommentcarMapper.selectByName(name);
    }

    @Override
    public Page<Recommentcar> getPage(Page page, QueryWrapper queryWrapper) {
        return recommentcarMapper.selectPage(page,queryWrapper);
    }
}
